﻿using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using FCModel;

namespace FCBLL
{
    public class AccessBLL : IFormatBLL
    {
        int iHeadIndex = 0;
        int iValueIndex = 1;

        public IList<ParameterDao> AnalysisFile(string[] arrSourceFile, string fileType)
        {
            bas_TestType btt = CommonBLL.getValueIndexAndHeadIndex(fileType);
            iHeadIndex = string.IsNullOrWhiteSpace(btt.HeadIndex.ToString()) ? iHeadIndex : (Int32)btt.HeadIndex;
            iValueIndex = string.IsNullOrWhiteSpace(btt.ValueIndex.ToString()) ? iValueIndex : (Int32)btt.ValueIndex;

            IList<ParameterDao> listSSD = new List<ParameterDao>();
            string rowData;
            for (int i = iValueIndex; i < arrSourceFile.Length; i++)
            {
                rowData = arrSourceFile[i];
                if (string.IsNullOrWhiteSpace(rowData.Trim()))
                {
                    continue;
                }
                ParameterDao pd = new ParameterDao();
                string[] temArrData = rowData.Split(',');
            }



            return listSSD;
        }
    }
}
